package me.guythundar.NoChat;

import org.bukkit.event.player.PlayerChatEvent;
import org.bukkit.event.player.PlayerListener;

public class PlayerJoinListener extends PlayerListener {

	public NoChat plug;
	
	public PlayerJoinListener(NoChat noChat) {
		plug = noChat;
	}

	public void onPlayerJoin(PlayerChatEvent e){
		plug.playerHearingLevels.put(e.getPlayer().getDisplayName(),
				Integer.valueOf(plug.HEAR_ALL));
	}
}
